﻿#ifndef QLUA_H
#define QLUA_H

#include "../QLua_global.h"

class QLUA_EXPORT QLua
{
public:
    QLua();
    ~QLua();
    QString GetCmd(QStringList list);
    QString GetPrintLabel(QString msg, int mark = 0);

    QStringList getAllFunction(bool flag = false);

    QString ScriptFileName() const;
    void setScriptFileName(const QString &newScriptFileName);

private:
    lua_State* L;
    QString m_ScriptFileName = "../luaScripts/command.lua";     // 调试脚本路径，程序初始化会重新设置路径
    QStringList m_builtInfunction;

    QStringList diffQStringList(QStringList list1,QStringList list2);
};

#endif // QLUA_H
